package cn.onein.edu.common.base;

import javax.jms.Destination;

import org.springframework.jms.core.JmsTemplate;

/**
 * MQ消息的基类
 * @author Upton
 *
 */
public abstract class JmsSupport {
	
	public static final String MSG_KEY_SEND_MAIL_TYPE       = "MSG_KEY_SEND_MAIL_TYPE";
	public static final String MSG_KEY_USER_ID              = "MSG_KEY_USER_ID";
	public static final String MSG_KEY_USER_NAME            = "MSG_KEY_USER_NAME";
	public static final String MSG_KEY_USER_NICK_NAME       = "MSG_KEY_USER_NICK_NAME";	
	public static final String MSG_KEY_USER_EMAIL           = "MSG_KEY_USER_EMAIL";
	public static final String MSG_KEY_USER_NEW_PASS        = "MSG_KEY_USER_NEW_PASS";
	public static final String MSG_KEY_SHARED_URL           = "MSG_KEY_SHARED_URL";
	public static final String MSG_KEY_CHANGE_EMAIL_URL     = "MSG_KEY_CHANGE_EMAIL_URL";
	public static final String MSG_KEY_JOB_TYPE             = "MSG_KEY_JOB_TYPE";
	public static final String MSG_KEY_JOB_MESSAGE          = "MSG_KEY_JOB_MESSAGE";
	
	public static final String MSG_KEY_FEEDBACK_TITLE       = "MSG_KEY_FEEDBACK_TITLE";
	public static final String MSG_KEY_FEEDBACK_MOBILE      = "MSG_KEY_FEEDBACK_MOBILE";
	public static final String MSG_KEY_FEEDBACK_EMAIL       = "MSG_KEY_FEEDBACK_EMAIL";
	public static final String MSG_KEY_FEEDBACK_CONTENT     = "MSG_KEY_FEEDBACK_CONTENT";
	
	public static final String MSG_KEY_LEVEL_EXPIRES_DATE   = "MSG_KEY_LEVEL_EXPIRES_DATE";
	
	/*
	 * 消息发送的目的地
	 */
	private Destination destination;
	
	/*
	 * spring Jms 模板
	 */
	private JmsTemplate jmsTemplate;

	public Destination getDestination() {
		return destination;
	}

	public void setDestination(Destination destination) {
		this.destination = destination;
	}

	public JmsTemplate getJmsTemplate() {
		return jmsTemplate;
	}

	public void setJmsTemplate(JmsTemplate jmsTemplate) {
		this.jmsTemplate = jmsTemplate;
	}
}